<template>
<div class="flex-center page">
 <div class="wb-main">
    <div v-if="boomWidth" class="header  tc">
      <boom class="boom " :imgs="imgs" :width="boomWidth" :height="height"></boom>
    </div>
    <users class="users"></users>
  </div>
</div>
</template> 
<script>
import boom from "@/components/boom.vue";
import users from "@/components/users.vue";
export default {
  components: { boom , users},
  data() {
    return {
      boomWidth:'',
      height:'',
      imgs: [
        'http://serve.wczw.top/1620198128180.jpg',
        'http://serve.wczw.top/1620198097329.jpg',
        'http://serve.wczw.top/1620198088951.jpg',
        'http://serve.wczw.top/1620198046923.jpg',
        'http://serve.wczw.top/1620198039110.jpg',
        'http://serve.wczw.top/1620198031394.jpg',
        // 'http://serve.wczw.top/1620194777657.jpg',
      ]
    };
  },
  mounted(){
    this.boomWidth = window.innerWidth < 768 ? window.innerWidth : 800
    this.height =window.innerWidth < 768 ? 200 : 520
    window.addEventListener('resize',()=>{
      this.boomWidth = window.innerWidth < 768 ? window.innerWidth : 800
      this.height =window.innerWidth < 768 ? 200 : 520
    })
  },
  methods: {

  },
}
</script>

<style lang="scss" scoped>

.page{
  height: 100vh;
  overflow-x: hidden;
  overflow-y: hidden;
  background:linear-gradient(180deg,rgba(191, 227, 249, 1) 0,transparent) ;
}
.wb-main{
  padding-bottom: 50px;
}
.header{
  float: left;
}
.users{
  float: left;
  margin-left: 30px;
  &::after{
    clear: both;
  }
}
.author{
  background:linear-gradient(180deg,rgba(191, 227, 249, 1) 0,transparent) ;
}

@media screen and (max-width: 768px) {
  .page{
    display: block;
    background:linear-gradient(180deg,rgba(191, 227, 249, 1) 0,transparent) ;
    overflow-y: auto;
  }
  .header{
    display: block;
  }
  .page-maxWidth{
    padding: 0px !important;
  }
  .author{
    background:transparent ;
    margin-left: 0px;
    width: 100% !important;
    height: auto !important;
    padding:0px 25px;
    padding-bottom: 15px;
    border-radius: 0px;
  }

}

._title{
  height:70px;
  line-height: 70px;
  color:orange;
}
._nomsg{
  text-align: center;
  height: 100px;
  line-height: 100px;
  font-size: 12px;
  color: #999;
}
</style>
